package com.kefu.boss.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@TableName(value="boss_menu")
@ApiModel(description = "菜单")
public class BossMenu implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id")
    @NotEmpty
    @ApiModelProperty(name = "id", value = "主键")
    private String id;

    /**
     * 上级
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(name = "parentId", value = "上级")
    private String parentId;

    /**
     * 菜单名称6
     */
    @TableField(value = "name")
    @ApiModelProperty(name = "name", value = "菜单名称")
    private String name;

    /**
     * 排序
     */
    @TableField(value = "weight")
    @ApiModelProperty(name = "weight", value = "排序")
    private Integer weight;

    /**
     * 是否隐藏
     */
    @TableField(value = "hidden")
    @ApiModelProperty(name = "hidden", value = "是否隐藏:0，否，1是，默认 0")
    private Integer hidden;

    /**
     * 前端标识
     */
    @TableField(value = "path")
    @ApiModelProperty(name = "path", value = "前端标识")
    private String path;

    /**
     * 数据权限
     */
    @TableField(value = "data_status")
    @ApiModelProperty(name = "dataStatus", value = "数据权限", notes = "0 无效，1 有效")
    private String dataStatus;

    /**
     * 类型
     */
    @TableField(value = "type")
    @ApiModelProperty(name = "type", value = "类型")
    private String type;

    /**
     * 前端标识
     */
    @TableField(value = "redirect")
    @ApiModelProperty(name = "redirect", value = "重定向")
    private String redirect;

    /**
     * 组件
     */
    @TableField(value = "component")
    @ApiModelProperty(name = "component", value = "组件")
    private String component;


    /**
     * 图标
     */
    @TableField(value = "icon")
    @ApiModelProperty(name = "icon", value = "图标")
    private String icon;
    private static final long serialVersionUID = 1L;
}